package com.ruoyi.system.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.ConsumptionRecord;

/**
 * 消费记录Mapper接口
 * 
 * @author 华馨悦
 * @date 2025-01-24
 */
public interface ConsumptionRecordMapper extends BaseMapper<ConsumptionRecord>

{
    /**
     * 查询消费记录
     * 
     * @param id 消费记录主键
     * @return 消费记录
     */
    public ConsumptionRecord selectConsumptionRecordById(Long id);

    /**
     * 查询消费记录列表
     * 
     * @param consumptionRecord 消费记录
     * @return 消费记录集合
     */
    public List<ConsumptionRecord> selectConsumptionRecordList(ConsumptionRecord consumptionRecord);

    /**
     * 新增消费记录
     * 
     * @param consumptionRecord 消费记录
     * @return 结果
     */
    public int insertConsumptionRecord(ConsumptionRecord consumptionRecord);

    /**
     * 修改消费记录
     * 
     * @param consumptionRecord 消费记录
     * @return 结果
     */
    public int updateConsumptionRecord(ConsumptionRecord consumptionRecord);

    /**
     * 删除消费记录
     * 
     * @param id 消费记录主键
     * @return 结果
     */
    public int deleteConsumptionRecordById(Long id);

    /**
     * 批量删除消费记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteConsumptionRecordByIds(String[] ids);
}
